<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <script data-main="../resource/main" src="../resource/require.js"></script>
</head>
<body>
<button onclick="test()">测试</button>
<script>
    function test() {
        require(['jquery', 'angular'], function ($, angular) {
            $('body').css({'backgroundColor': 'red'});
        })
    }
</script>
</body>
</html>